<?php
/**
 * Created by PhpStorm.
 * User: Jason
 * Date: 2017/8/12
 * Time: 21:09
 */

namespace Admin\Controller;


use Admin\Service\SheetRecordService;

class SheetRecordController extends AdminController
{
    public function RecordBySheetId($sheetId = 0)
    {
        $param = I('post.');
        if(!empty($sheetId)) $param['$sheet_id'] = $sheetId;
        $service = new SheetRecordService();
        $comment = $service->getCommentByParam($param);

        $this->assign('_comment', $comment);
        $this->assign("_name", trim($param['name']));
        $this->assign('meta_title', "谱单评论列表");
        $this->display('index');
    }
}